﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SGRapidForm.Common;
using System.Runtime.Serialization;

namespace SGRapidForm.Permission.Entity
{

    [DataContract]
    public class PageEntity : EntityBase
    {

        public PageEntity()
        { }

        #region Model
        private string _keyid = string.Empty;
        private string _modulekeyid = string.Empty;
        private string _parentkeyid = string.Empty;
        private string _pagecode = string.Empty;
        private string _pagename = string.Empty;
        private string _pagenameen = string.Empty;
        private string _imageurl = string.Empty;
        private string _navigateurl = string.Empty;
        private int? _order = 0;
        private string _pagetype = string.Empty;
        private string _remark = string.Empty;
        private string _createname = string.Empty;
        private DateTime? _createdate = new DateTime(1900, 1, 1, 0, 0, 0);
        private string _modifyname = string.Empty;
        private DateTime? _modifydate = new DateTime(1900, 1, 1, 0, 0, 0);
        private string _helpkeyid = string.Empty;
        private string _helptitle = string.Empty;
        private bool _isassignment = true;
        
        [DataMember]
        public string Keyid
        {
            set { _keyid = value; }
            get { return _keyid; }
        }
        [DataMember]
        public string ModuleKeyid
        {
            set { _modulekeyid = value; }
            get { return _modulekeyid; }
        }
        [DataMember]
        public string ParentKeyid
        {
            set { _parentkeyid = value; }
            get { return _parentkeyid; }
        }
        [DataMember]
        public string PageCode
        {
            set { _pagecode = value; }
            get { return _pagecode; }
        }
        [DataMember]
        public string PageName
        {
            set { _pagename = value; }
            get { return _pagename; }
        }
        [DataMember]
        public string PageNameEn
        {
            set { _pagenameen = value; }
            get { return _pagenameen; }
        }
        [DataMember]
        public string ImageUrl
        {
            set { _imageurl = value; }
            get { return _imageurl; }
        }
        [DataMember]
        public string NavigateUrl
        {
            set { _navigateurl = value; }
            get { return _navigateurl; }
        }
        [DataMember]
        public int? Order
        {
            set { _order = value; }
            get { return _order; }
        }
        [DataMember]
        public string PageType
        {
            set { _pagetype = value; }
            get { return _pagetype; }
        }
        [DataMember]
        public string Remark
        {
            set { _remark = value; }
            get { return _remark; }
        }
        [DataMember]
        public string CreateName
        {
            set { _createname = value; }
            get { return _createname; }
        }
        [DataMember]
        public DateTime? CreateDate
        {
            set { _createdate = value; }
            get { return _createdate; }
        }
        [DataMember]
        public string ModifyName
        {
            set { _modifyname = value; }
            get { return _modifyname; }
        }
        [DataMember]
        public DateTime? ModifyDate
        {
            set { _modifydate = value; }
            get { return _modifydate; }
        }
        [DataMember]
        public string HelpKeyid
        {
            set { _helpkeyid = value; }
            get { return _helpkeyid; }
        }

        [DataMember]
        public string HelpTitle
        {
            set { _helptitle = value; }
            get { return _helptitle; }
        }

        [DataMember]
        public bool IsAssignment 
        {
            get { return _isassignment; }
            set { _isassignment = value; }
        }

        #endregion Model
    }
}
